<?php
/*
 * 测试数据库
 * */
namespace app\member\controller;
use think\Controller;
use app\member\model\Member;
use think\Db;

// TODO 这仅仅只是一个测试
class DataTest extends Controller
{
    public function index(){
        return "index";
    }
    public function getNoModelData(){
//        $result =  Db::table("ps_admin")->select();
        $result =  Db::name("admin")->select();
        return json($result);
    }

    public function  getModelData(){
        $test = Member::select();
        return $test;
    }
}